﻿using System;
using Equation.Enterprise.Framework.Domain.Model;
using System.Collections.Generic;

namespace ENail.Domain.Core
{
    public class Customer:EntityWithTypedId<Int32>
    {
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Title { get; set; }
        public string BirthDay { get; set; }
        public string Address { get; set; }
        public string City { get; set; }
        public string State { get; set; }
        public string Zip { get; set; }
        public string Country { get; set; }
        public string Phone { get; set; }
        public string Mobile { get; set; }
        public string Email { get; set; }
        public virtual IList<Registration> Registrations { get; set; }
        public virtual NailSalon NailSalon { get; set; }
        public bool IsActive { get; set; }
        
        public DateTime CreateDate { get; set; }
        public DateTime UpdateDate { get; set; }

        public Customer(string firstName, string lastName, string title, string birthDay, string address, string city, string state, string zip, string country, string phone, string mobile, string email) : this()
        {
            FirstName = firstName;
            LastName = lastName;
            Title = title;
            BirthDay = birthDay;
            Address = address;
            City = city;
            State = state;
            Zip = zip;
            Country = country;
            Phone = phone;
            Mobile = mobile;
            Email = email;
        }
        
        public Customer()
        {
            IsActive = true;
            CreateDate = DateTime.Now;
            UpdateDate = DateTime.Now;
        }
    }
}
